package com.eascs.dubbo.api.admin;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.admin.api.loanapply.BillApiService;
import com.eascs.admin.o2o.credit.entity.CreditReport;
import com.eascs.admin.o2o.credit.service.CreditReportService;
import com.eascs.admin.o2o.internal.entity.LoanapplyExpand;
import com.eascs.admin.o2o.internal.service.LoanapplyExpandService;
import com.eascs.afterloancheck.entity.CheckLoanEntity;
import com.eascs.afterloancheck.service.LoanCheckServicce;
import com.eascs.app.dao.PageResult;
import com.eascs.paymentdetail.service.O2oPaymentDetailService;
import com.eascs.paymentdetail.vo.O2oPaymentDetailPageVo;
import com.eascs.paymentdetail.vo.O2oPaymentDetailVo;
@Service
public class BillApiServiceImpl implements BillApiService{
     @Autowired
     O2oPaymentDetailService o2oPaymentDetailService;
     @Autowired
     CreditReportService creditReportService;
     @Autowired
     LoanapplyExpandService loanapplyExpandService;
     @Autowired
     LoanCheckServicce loanCheckServicce;
	@Override
	public O2oPaymentDetailVo findByBillcode(String loanapplyNo) {
		return o2oPaymentDetailService.findByBillCodeOrLoanapplyNo(loanapplyNo);
	}
	@Override
	public CreditReport queryLoanMessage(String loanapplyNo, String parentId) {
		return creditReportService.queryLoanapplyNo(loanapplyNo, parentId);
	}
	@Override
	public PageResult<Object[]> findByNo(O2oPaymentDetailPageVo vo) {
		return o2oPaymentDetailService.findByPage(vo);
	}
	@Override
	public CheckLoanEntity findByReferId(String loanapplyNo) {
		return loanCheckServicce.queryEntityByReferId(loanapplyNo);
	}
	@Override
	public LoanapplyExpand findLoanapplyNo(String loanapplyNo) {
		return loanapplyExpandService.queryLoanapplyNo(loanapplyNo);
	}
	
	

}
